import { CreateDate, Entity, Digdit, Title, Boolean, Cover, PrimaryUuid, UpdateDate, CmsCategoryId, CreateUserId } from '@sker/core'
@Entity({
    name: 'cms_category'
})
export class CmsCategory {
    static title: string = `文章分类`;
    static resource: string = `cms_category`;

    @PrimaryUuid({
        primaryKeyConstraintName: "PK_CMS_CATEGORY_ID"
    })
    id!: string;

    @Title({ comment: '分类名' })
    title!: string;

    @Cover({ comment: '缩略图' })
    cover!: string;

    @CmsCategoryId({ comment: '上级分类' })
    pid!: string;

    @Digdit({ comment: '顺序' })
    displayorder!: number;

    @Boolean()
    status!: boolean;

    @CreateUserId({ comment: '上传人' })
    create_uid!: string;

    @CreateDate({
        comment: '创建日期'
    })
    create_date!: Date;

    @UpdateDate({
        comment: '更新日期'
    })
    update_date!: Date;
}
